import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import '../../../generated/l10n.dart';
import 'metting_record_logic.dart';

class Metting_recordPage extends GetView<Metting_recordLogic> {
  const Metting_recordPage({Key? key}) : super(key: key);

  static final textEditingController = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Colors.white,
        centerTitle: true,
        title: Text(
          S.current.myMeeting,
          style: TextStyle(fontSize: 16.sp, fontWeight: FontWeight.w600),
        ),
        actions: [
          GestureDetector(
            onTap: (){
              Get.back(result: textEditingController.text);
            },
            child: Text(
              S.current.submit,
              style: TextStyle(
                  fontSize: 13.sp,
                  color: const Color(0xFF1877FF),
                  fontWeight: FontWeight.w500),
            ).paddingOnly(right: 15.w),
          )
        ],
      ),
      body: Container(
        color: const Color(0xFFf6f6f6),
        padding: EdgeInsets.symmetric(horizontal: 15.w, vertical: 15.h),
        child: Container(
          width: double.infinity,
          height: double.infinity,
          decoration: BoxDecoration(
              color: Colors.white, borderRadius: BorderRadius.circular(8.r)),
          child: TextField(
            controller: textEditingController,
            maxLines: null,
            style: TextStyle(
                color: const Color(0xFF333333),
                fontSize: 12.sp,
                fontWeight: FontWeight.w500,
                height: 1.83),
            cursorColor: const Color(0xFF1877FF),
            decoration: InputDecoration(
              hintText: S.current.meetingRecordHint,
              hintStyle: TextStyle(
                  color: const Color(0xFF666666),
                  fontSize: 12.sp,
                  fontWeight: FontWeight.w400),
              border: InputBorder.none,
            ),
          ).paddingOnly(left: 10.w),
        ),
      ),
    );
  }
}
